//
//  YTXConfig.cpp
//  Chart
//
//  Created by Javen Wang on 5/29/13.
//
//

#include "YTXConfig.h"
#include "Metal.h"

using namespace ytx;
using namespace std;

YTXConfig * YTXConfig::instance = NULL;

YTXConfig::YTXConfig()
{
    LogTag = "ChartView";
    CanvasTag = "CanvasRender";
    HTTPTag = "HTTPRequest";
    EventTag = "TouchEvent";
    RunTimeTag = "RunTime";
    userDefaultGroupName = "";

    index = IndexConfig::initIndex();

    debugger = true;

    isTest = false;
}

YTXConfig * YTXConfig::getInstance()
{
    if (instance == NULL) {
        instance = new YTXConfig();
    }
    return instance;
}